package com.easy.dfc.mapper;


import com.easy.core.persistence.annotation.MyBatisMapper;
import com.easy.dfc.Utils.PagingUtil;
import com.easy.dfc.entity.OrderSet;
import com.easy.dfc.entity.OrderSetWithBLOBs;
import com.easy.dfc.entity.OrderStatusNum;
import com.easy.dfc.entity.Userset;

import java.util.List;

@MyBatisMapper
public interface OrderSetMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(OrderSetWithBLOBs record);

    int insertSelective(OrderSetWithBLOBs record);

    OrderSetWithBLOBs selectByPrimaryKey(Integer id);

    OrderSetWithBLOBs selectItemNo(String itemNo);

    List<OrderSetWithBLOBs> selectByDealerId(PagingUtil pagingUtil);

    List<OrderSetWithBLOBs> selectByFactoryId(PagingUtil pagingUtil);

    List<OrderStatusNum> selectStatusNumByFactory(String userId);

    List<OrderStatusNum> selectStatusNumByDealer(String userId);

    Userset selectUser(Integer id);

    Userset selectUserByFactory(Integer id);

    int updateByPrimaryKeySelective(OrderSetWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(OrderSetWithBLOBs record);

    int updateByPrimaryKey(OrderSet record);
}